package com.itheima.countDownLatch;

import java.util.concurrent.CountDownLatch;

public class ChileThread3 implements Runnable{
    private CountDownLatch countDownLatch;

    public ChileThread3(CountDownLatch countDownLatch) {
        this.countDownLatch = countDownLatch;
    }
    @Override
    public void run() {
        for (int i = 1; i <= 15; i++) {
            System.out.println(Thread.currentThread().getName()+"吃了"+i+"个饺子");
        }
        countDownLatch.countDown();
    }
}
